﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" xmlns:Spritehand_PhysicsBehaviors="clr-namespace:Spritehand.PhysicsBehaviors;assembly=Spritehand.PhysicsBehaviors" 
    xmlns:local="clr-namespace:DemoBehaviors3" x:Class="DemoBehaviors3.MainPage"
    d:DesignWidth="800" d:DesignHeight="600">
  <Canvas x:Name="LayoutRoot">
  	<i:Interaction.Behaviors>
  		<Spritehand_PhysicsBehaviors:PhysicsControllerBehavior DebugMode="False"  MousePickEnabled="True"/>
  	</i:Interaction.Behaviors>
  	<Path Stretch="Fill" Height="273.463" Width="1254.825" UseLayoutRounding="False" Canvas.Left="5.175" Canvas.Top="314.995" Data="M14,548 C14,548 -6,512 16,484 C38,456 223.99318,318 253.9922,330 C283.99121,342 437.98618,504.00009 457.9855,500.00012 C477.98486,496.00012 519.98346,398.00031 561.98212,398.00031 C603.98071,398.00031 645.97937,526.00006 669.97858,514.00006 C693.97778,502.00009 791.97455,314.00046 847.97272,322.00046 C903.97089,330.00046 963.96893,518 977.96844,514 C991.96796,510 1083.965,304.00031 1125.9636,316.00027 C1167.9623,328.00024 1259.4786,541.70483 1259.4786,541.70483 L1251.4851,587.5437 L6.0003271,587.99994 z">
  		<Path.Fill>
  			<LinearGradientBrush EndPoint="0.502,0.04" StartPoint="0.502,-0.96">
  				<GradientStop Color="#FF398245" Offset="0"/>
  				<GradientStop Color="#FF4F4633" Offset="1"/>
  			</LinearGradientBrush>
  		</Path.Fill>
  	</Path>
  	<local:ucTruck x:Name="ucTruck" Canvas.Left="47" Canvas.Top="35" d:LayoutOverrides="Width, Height"/>
  	<Rectangle x:Name="ground1" Height="300" Width="26" Canvas.Top="300" Canvas.Left="2">
  		<i:Interaction.Behaviors>
  			<Spritehand_PhysicsBehaviors:PhysicsObjectBehavior IsStatic="True"/>
  		</i:Interaction.Behaviors>
  		<Rectangle.Fill>
  			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  				<GradientStop Color="#FF398245" Offset="0"/>
  				<GradientStop Color="#FF1C7229" Offset="1"/>
  			</LinearGradientBrush>
  		</Rectangle.Fill>
  	</Rectangle>
  	<Rectangle x:Name="ground2" Height="50" Width="1216" Canvas.Left="26" Canvas.Top="550">
  		<i:Interaction.Behaviors>
  			<Spritehand_PhysicsBehaviors:PhysicsObjectBehavior IsStatic="True"/>
  		</i:Interaction.Behaviors>
  		<Rectangle.Fill>
  			<LinearGradientBrush EndPoint="0.502,0.04" StartPoint="0.502,-0.96">
  				<GradientStop Color="#FF398245" Offset="0"/>
  				<GradientStop Color="#FF1C7229" Offset="1"/>
  			</LinearGradientBrush>
  		</Rectangle.Fill>
  	</Rectangle>
  	<Rectangle x:Name="ground3" Height="300" Width="26" Canvas.Top="300" Canvas.Left="1240">
  		<i:Interaction.Behaviors>
  			<Spritehand_PhysicsBehaviors:PhysicsObjectBehavior IsStatic="True"/>
  		</i:Interaction.Behaviors>
  		<Rectangle.Fill>
  			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  				<GradientStop Color="#FF398245" Offset="0"/>
  				<GradientStop Color="#FF1C7229" Offset="1"/>
  			</LinearGradientBrush>
  		</Rectangle.Fill>
  	</Rectangle>
  	<TextBlock Height="42" Width="295" Canvas.Left="28" Canvas.Top="554" Text="Use the left and right arrow keys to apply torque to the truck's rear wheel." TextWrapping="Wrap" Foreground="White" Canvas.ZIndex="100"/>

  </Canvas>
</UserControl>
